package com.hsogoo.avatar.controller;

import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hsogoo.avatar.controller.service.ConsumeUserService;

@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private ConsumeUserService  consumeUserService;

    @GetMapping("/test")
    public String test(){
        String result = consumeUserService.sayHello("avatar");
        System.out.println("got server result :" + result);
        return result;
    }

}
